package com.safety51.bootstrap.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class},
        scanBasePackages = {
                "com.safety51"
        })
@EnableFeignClients(basePackages = {"com.safety51.bootstrap.api"})
public class DemoApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(DemoApplication.class, args);
            // 获取当前用户可以看的单位
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

//    @Bean
//    MetadataSingleton metadataSingleton(){
//        return MetadataSingleton.getInstance();
//    }

}
